package com.whpost.service.entity.tools;


import lombok.Getter;
import lombok.Setter;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author: Yin Zhuoyi
 * @Date: 2020/12/1 9:39
 */
@Getter
@Setter
public class ResultInfo<T> {
    private static final long serialVersionUID = 7498483649536881777L;
    private int code;
    private String msg;
    private T data;
    public ResultInfo() {

    }
    public ResultInfo(int code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ResultInfo(String code, String msg, T data) {
        this.code = Integer.parseInt(code);
        this.msg = msg;
        this.data = data;


    }

}
